
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class regex {
	
	public static void main(String args[])
	{
	//	Pattern p = Pattern.compile("^.*sina.*html$");
		Pattern p = Pattern.compile("^\\d+.*html$");
	    
	    Scanner scanner = new Scanner(System.in);
	    while(scanner.hasNext()){
	    	String string = scanner.nextLine();
	    	Matcher m = p.matcher(string);
	    	System.out.println(m.matches());
	    }
	}
	
	

}
